FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.7.11  |  FHIR Version n/a  User: [n/a]

Resource StructureMap/FHIR Server from package zambia.hie.fhir#current (31 ms)

Package zambia.hie.fhir
Type StructureMap
Id Id
FHIR Version R5
Source http://moh.gov.zm/fhir/immunizations/https://build.fhir.org/ig/jembi/Zambia-Immunizations/StructureMap-PropietaryEducationLevelToLOINCEducationLevel.html
Url http://moh.gov.zm/fhir/immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel
Version 1.0.1
Status active
Date 2024-09-30T13:31:33+00:00
Name PropietaryEducationLevelToLOINCEducationLevel
Title Propietary Educational Level To LOINC Educational Level
Experimental False
Description Maps the Propietary Educational Level codes To LOINC Educational Level codes.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureMap PropietaryEducationLevelToLOINCEducationLevel

/// url = 'http://moh.gov.zm/fhir/immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel'
/// name = 'PropietaryEducationLevelToLOINCEducationLevel'
/// title = 'Propietary Educational Level To LOINC Educational Level'
/// status = 'active'

uses "http://hl7.org/fhir/StructureDefinition/Observation" alias srcObservation as source
uses "http://hl7.org/fhir/StructureDefinition/Observation" alias tgtObservation as target

group SetPatientEducationalLevel(source obs : srcObservation, target observation : tgtObservation) <<type+>> {
  obs.value : CodeableConcept as vs -> observation.value = create('CodeableConcept') as vt then {
    vs.coding as coding then {
      coding -> vt = translate(coding, 'http://moh.gov.zm/fhir/immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel', 'code') "SetPatientEducationCode";
    } "SetPatientEducationCoding";
  } "SetEducationLevel";
}


Source

{
  "resourceType" : "StructureMap",
  "id" : "PropietaryEducationLevelToLOINCEducationLevel",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap PropietaryEducationLevelToLOINCEducationLevel</b></p><a name=\"PropietaryEducationLevelToLOINCEducationLevel\"> </a><a name=\"hcPropietaryEducationLevelToLOINCEducationLevel\"> </a><a name=\"PropietaryEducationLevelToLOINCEducationLevel-en-US\"> </a><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://moh.gov.zm/fhir/immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'PropietaryEducationLevelToLOINCEducationLevel'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Propietary Educational Level To LOINC Educational Level'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">&quot; </span><b>alias </b>srcObservation <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">&quot; </span><b>alias </b>tgtObservation <b>as </b><b>target</b>\r\n\r\n<b>group </b>SetPatientEducationalLevel<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">obs</span><span style=\"color: navy\"> : </span>srcObservation, <b>target</b> <span style=\"color: maroon\">observation</span><span style=\"color: navy\"> : </span>tgtObservation<span style=\"color: navy\">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span> obs.value<span style=\"color: navy\"> : </span>CodeableConcept<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -&gt; </b></span>observation.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs.coding<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {\r\n</span> coding<span style=\"color: navy\"><b> -&gt; </b></span>vt = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">coding</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://moh.gov.zm/fhir/immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>&quot;SetPatientEducationCode&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;SetPatientEducationCoding&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;SetEducationLevel&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "url" : "http://moh.gov.zm/fhir/immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel",
  "version" : "1.0.1",
  "name" : "PropietaryEducationLevelToLOINCEducationLevel",
  "title" : "Propietary Educational Level To LOINC Educational Level",
  "status" : "active",
  "date" : "2024-09-30T13:31:33+00:00",
  "publisher" : "Jembi Health Systems",
  "contact" : [
    {
      "name" : "Jembi Health Systems",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.jembi.org"
        },
        {
          "system" : "email",
          "value" : "info@jembi.org"
        }
      ]
    },
    {
      "name" : "Richard Langford",
      "telecom" : [
        {
          "system" : "email",
          "value" : "richard.langford@jembi.org",
          "use" : "work"
        }
      ]
    }
  ],
  "description" : "Maps the Propietary Educational Level codes To LOINC Educational Level codes.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "ZM",
          "display" : "Zambia"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode" : "source",
      "alias" : "srcObservation"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode" : "target",
      "alias" : "tgtObservation"
    }
  ],
  "group" : [
    {
      "name" : "SetPatientEducationalLevel",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "obs",
          "type" : "srcObservation",
          "mode" : "source"
        },
        {
          "name" : "observation",
          "type" : "tgtObservation",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "SetEducationLevel",
          "source" : [
            {
              "context" : "obs",
              "type" : "CodeableConcept",
              "element" : "value",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "element" : "value",
              "variable" : "vt",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "SetPatientEducationCoding",
              "source" : [
                {
                  "context" : "vs",
                  "element" : "coding",
                  "variable" : "coding"
                }
              ],
              "rule" : [
                {
                  "name" : "SetPatientEducationCode",
                  "source" : [
                    {
                      "context" : "coding"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "vt",
                      "transform" : "translate",
                      "parameter" : [
                        {
                          "valueId" : "coding"
                        },
                        {
                          "valueString" : "http://moh.gov.zm/fhir/immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel"
                        },
                        {
                          "valueString" : "code"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.